#include "Ent.h"
#include "EntHandler.h"

Ent::Ent() {
	handler = 0;
	position = vect::ZERO;
	orientation = quat::IDENTITY;
}

Ent::~Ent() {

}

void Ent::setName(std::string n) {
	handler->setName(this, n);
}

std::string Ent::getName() {
	return handler->getName(this);
}

EntHandler* Ent::getHandler() {
	return handler;
}

const vect& Ent::getPosition() const {
	return position;
}

void Ent::setPosition(const vect& p) {
	position = p;
}

const quat& Ent::getOrientation() const {
	return orientation;
}

void Ent::setOrientation(const quat& d) {
	orientation = d;
}
